package node;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class NodeImitator extends Thread {
	
	private String ip;
	private int port;

	public NodeImitator(String ip,int port) {
		this.ip = ip;
		this.port = port;
	}

	
	public void run(){
		ServerSocket ss = null;
		Socket s = null;
		try {
			ss = new ServerSocket(port);
			s = ss.accept();
			new NodeThread(s,port).start();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		
	}
	
}
